<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/xhtml;charset=utf-8" http-equiv="Content-Type"/>
<meta content="IE=9" http-equiv="X-UA-Compatible"/>
<meta content="Doxygen 1.8.13" name="generator"/>
<title>OpenCV: Flags used for image file reading and writing</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon"/>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script src="../../jquery.js" type="text/javascript"></script>
<script src="../../dynsections.js" type="text/javascript"></script>
<script src="../../tutorial-utils.js" type="text/javascript"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script src="../../search/searchdata.js" type="text/javascript"></script>
<script src="../../search/search.js" type="text/javascript"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js" type="text/javascript"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css"/>
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellpadding="0" cellspacing="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
    <span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script src="../../menudata.js" type="text/javascript"></script>
<script src="../../menu.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow" onkeydown="return searchBox.OnSearchSelectKey(event)" onmouseout="return searchBox.OnSearchSelectHide()" onmouseover="return searchBox.OnSearchSelectShow()">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe frameborder="0" id="MSearchResults" name="MSearchResults" src="javascript:void(0)">
</iframe>
</div>
<div class="header">
  <div class="summary">
<a href="#enum-members">Enumerations</a>  </div>
  <div class="headertitle">
<div class="title">Flags used for image file reading and writing<div class="ingroups"><a class="el" href="../../d4/da8/group__imgcodecs.html">Image file reading and writing</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:ga61d9b0126a3e57d9277ac48327799c80"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#ga61d9b0126a3e57d9277ac48327799c80">cv::ImreadModes</a> { <br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga61d9b0126a3e57d9277ac48327799c80aeddd67043ed0df14f9d9a4e66d2b0708">cv::IMREAD_UNCHANGED</a> = -1, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga61d9b0126a3e57d9277ac48327799c80ae29981cfc153d3b0cef5c0daeedd2125">cv::IMREAD_GRAYSCALE</a> = 0, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga61d9b0126a3e57d9277ac48327799c80af660544735200cbe942eea09232eb822">cv::IMREAD_COLOR</a> = 1, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga61d9b0126a3e57d9277ac48327799c80a0b486c93c25e8a0b0712681bb7254c18">cv::IMREAD_ANYDEPTH</a> = 2, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga61d9b0126a3e57d9277ac48327799c80ab6573b69300c092b61800222fe555953">cv::IMREAD_ANYCOLOR</a> = 4, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga61d9b0126a3e57d9277ac48327799c80a1b482916f4ffe34f0b90550f267fd896">cv::IMREAD_LOAD_GDAL</a> = 8, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga61d9b0126a3e57d9277ac48327799c80a64063c4e6a917237bd2daef7aa23dc01">cv::IMREAD_REDUCED_GRAYSCALE_2</a> = 16, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga61d9b0126a3e57d9277ac48327799c80a4d3de7230e2682195e09b00728792b37">cv::IMREAD_REDUCED_COLOR_2</a> = 17, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga61d9b0126a3e57d9277ac48327799c80a7903236181de9ade28ba1438b342e6c8">cv::IMREAD_REDUCED_GRAYSCALE_4</a> = 32, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga61d9b0126a3e57d9277ac48327799c80adf4fbfe43fb7c8c94ca008e7d7d20086">cv::IMREAD_REDUCED_COLOR_4</a> = 33, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga61d9b0126a3e57d9277ac48327799c80a838097893b5d5385d43e6a4470227a33">cv::IMREAD_REDUCED_GRAYSCALE_8</a> = 64, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga61d9b0126a3e57d9277ac48327799c80ac865811dba56b17a8241f9e62c273198">cv::IMREAD_REDUCED_COLOR_8</a> = 65, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga61d9b0126a3e57d9277ac48327799c80a34f91a514cd95127d8ba900840af548e">cv::IMREAD_IGNORE_ORIENTATION</a> = 128
<br/>
 }<tr class="memdesc:ga61d9b0126a3e57d9277ac48327799c80"><td class="mdescLeft"> </td><td class="mdescRight">Imread flags.  <a href="../../d8/d6a/group__imgcodecs__flags.html#ga61d9b0126a3e57d9277ac48327799c80">More...</a><br/></td></tr>
</td></tr>
<tr class="separator:ga61d9b0126a3e57d9277ac48327799c80"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga7682010f3485d86cd963504aa7ad6146"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#ga7682010f3485d86cd963504aa7ad6146">cv::ImwriteEXRCompressionFlags</a> { <br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga7682010f3485d86cd963504aa7ad6146a0c31f206cd9469a9a12a131a14dd8066">cv::IMWRITE_EXR_COMPRESSION_NO</a> = 0, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga7682010f3485d86cd963504aa7ad6146a9df4442565f77b586bd2f4aea45ec2ed">cv::IMWRITE_EXR_COMPRESSION_RLE</a> = 1, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga7682010f3485d86cd963504aa7ad6146a1a01f8cab2f18a2570727bfeb9e59521">cv::IMWRITE_EXR_COMPRESSION_ZIPS</a> = 2, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga7682010f3485d86cd963504aa7ad6146a2e27bf64b5d149d3df4ce952b2666da9">cv::IMWRITE_EXR_COMPRESSION_ZIP</a> = 3, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga7682010f3485d86cd963504aa7ad6146a201bd49e4dbcf36181e7bbf1adf6189b">cv::IMWRITE_EXR_COMPRESSION_PIZ</a> = 4, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga7682010f3485d86cd963504aa7ad6146a1c58571086123c174bf8a7a2566c205a">cv::IMWRITE_EXR_COMPRESSION_PXR24</a> = 5, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga7682010f3485d86cd963504aa7ad6146a490d7b948c06bb9da7d8d5b9f4090866">cv::IMWRITE_EXR_COMPRESSION_B44</a> = 6, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga7682010f3485d86cd963504aa7ad6146a9433a1a51d231d9ab11757e5be524036">cv::IMWRITE_EXR_COMPRESSION_B44A</a> = 7, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga7682010f3485d86cd963504aa7ad6146af065a15ca34c4efecd841f5f8257910a">cv::IMWRITE_EXR_COMPRESSION_DWAA</a> = 8, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga7682010f3485d86cd963504aa7ad6146a6abb8796c9d82f7fe8b052444b492a2e">cv::IMWRITE_EXR_COMPRESSION_DWAB</a> = 9
<br/>
 }</td></tr>
<tr class="separator:ga7682010f3485d86cd963504aa7ad6146"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga47d07d14b3c33151daac7fde6f34e897"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#ga47d07d14b3c33151daac7fde6f34e897">cv::ImwriteEXRTypeFlags</a> { <br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga47d07d14b3c33151daac7fde6f34e897a15ef5fdee6e2a55b4d0a1f9b2874fb96">cv::IMWRITE_EXR_TYPE_HALF</a> = 1, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga47d07d14b3c33151daac7fde6f34e897ad6a009ca0724b2e8bcbe0b60f395f2c7">cv::IMWRITE_EXR_TYPE_FLOAT</a> = 2
<br/>
 }</td></tr>
<tr class="separator:ga47d07d14b3c33151daac7fde6f34e897"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga292d81be8d76901bff7988d18d2b42ac"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#ga292d81be8d76901bff7988d18d2b42ac">cv::ImwriteFlags</a> { <br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga292d81be8d76901bff7988d18d2b42aca947af22db2cf6f1f482289b0985b09ec">cv::IMWRITE_JPEG_QUALITY</a> = 1, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga292d81be8d76901bff7988d18d2b42aca32ab52a075fc4e2ca23760a80b3fcd12">cv::IMWRITE_JPEG_PROGRESSIVE</a> = 2, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga292d81be8d76901bff7988d18d2b42acae80c3e72393ec86b8ea1db4a2a228b5f">cv::IMWRITE_JPEG_OPTIMIZE</a> = 3, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga292d81be8d76901bff7988d18d2b42aca06f325a56b6b09074d9781de18745560">cv::IMWRITE_JPEG_RST_INTERVAL</a> = 4, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga292d81be8d76901bff7988d18d2b42aca64c65da14d74ab87143d6999c4df12ea">cv::IMWRITE_JPEG_LUMA_QUALITY</a> = 5, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga292d81be8d76901bff7988d18d2b42acaaba13094b3575e78a6002788b0ae7354">cv::IMWRITE_JPEG_CHROMA_QUALITY</a> = 6, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga292d81be8d76901bff7988d18d2b42acad2548321c69ab9c0582fd51e75ace1d0">cv::IMWRITE_PNG_COMPRESSION</a> = 16, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga292d81be8d76901bff7988d18d2b42acaa95faec46150b372c80c7d4bbedbcf8a">cv::IMWRITE_PNG_STRATEGY</a> = 17, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga292d81be8d76901bff7988d18d2b42aca8c609ad94b7bd036ef68c51e7f77915f">cv::IMWRITE_PNG_BILEVEL</a> = 18, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga292d81be8d76901bff7988d18d2b42aca6ad01adc2675d735ec8424e6e7562087">cv::IMWRITE_PXM_BINARY</a> = 32, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga292d81be8d76901bff7988d18d2b42aca4aed00547168d3a1083a2b1241b99102">cv::IMWRITE_EXR_TYPE</a> = (3 &lt;&lt; 4) + 0, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga292d81be8d76901bff7988d18d2b42aca57b65c34c4907fb5ea5d685268bea89e">cv::IMWRITE_EXR_COMPRESSION</a> = (3 &lt;&lt; 4) + 1, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga292d81be8d76901bff7988d18d2b42aca7d3f848cc45d3138de0a2053d213a54a">cv::IMWRITE_WEBP_QUALITY</a> = 64, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga292d81be8d76901bff7988d18d2b42acacc7bb2ed1314ec9278a38d85e83b6623">cv::IMWRITE_PAM_TUPLETYPE</a> = 128, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga292d81be8d76901bff7988d18d2b42acaac188d2ba4ccffdda3d820c8e9dfa7c0">cv::IMWRITE_TIFF_RESUNIT</a> = 256, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga292d81be8d76901bff7988d18d2b42aca59a88cc19c00988a6677c60e5f6b03d0">cv::IMWRITE_TIFF_XDPI</a> = 257, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga292d81be8d76901bff7988d18d2b42aca76b632839a9f3e542e90fa7bfcfd8b9a">cv::IMWRITE_TIFF_YDPI</a> = 258, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga292d81be8d76901bff7988d18d2b42acad3d5dac0cfc770b96fc61e895a165fa4">cv::IMWRITE_TIFF_COMPRESSION</a> = 259, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga292d81be8d76901bff7988d18d2b42acaa082190a50748f712a6384416c2524dd">cv::IMWRITE_JPEG2000_COMPRESSION_X1000</a> = 272
<br/>
 }<tr class="memdesc:ga292d81be8d76901bff7988d18d2b42ac"><td class="mdescLeft"> </td><td class="mdescRight">Imwrite flags.  <a href="../../d8/d6a/group__imgcodecs__flags.html#ga292d81be8d76901bff7988d18d2b42ac">More...</a><br/></td></tr>
</td></tr>
<tr class="separator:ga292d81be8d76901bff7988d18d2b42ac"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga4e6c77a906952525a4d22fb3efea0e01"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#ga4e6c77a906952525a4d22fb3efea0e01">cv::ImwritePAMFlags</a> { <br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga4e6c77a906952525a4d22fb3efea0e01a05708faa19fda2b0e3e793542fced3c9">cv::IMWRITE_PAM_FORMAT_NULL</a> = 0, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga4e6c77a906952525a4d22fb3efea0e01a32a5eb9e6aa378ef126a6ec29c710d15">cv::IMWRITE_PAM_FORMAT_BLACKANDWHITE</a> = 1, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga4e6c77a906952525a4d22fb3efea0e01a9f2122f919b87bd6f5209ebe3673478d">cv::IMWRITE_PAM_FORMAT_GRAYSCALE</a> = 2, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga4e6c77a906952525a4d22fb3efea0e01a31754d8e503b394996982d8eeb5916b5">cv::IMWRITE_PAM_FORMAT_GRAYSCALE_ALPHA</a> = 3, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga4e6c77a906952525a4d22fb3efea0e01a749f4c5db48aa048ae4dbd8670d7d58d">cv::IMWRITE_PAM_FORMAT_RGB</a> = 4, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gga4e6c77a906952525a4d22fb3efea0e01adfdc63fecaa2abcbe1d98b79030c726a">cv::IMWRITE_PAM_FORMAT_RGB_ALPHA</a> = 5
<br/>
 }<tr class="memdesc:ga4e6c77a906952525a4d22fb3efea0e01"><td class="mdescLeft"> </td><td class="mdescRight">Imwrite PAM specific tupletype flags used to define the 'TUPETYPE' field of a PAM file.  <a href="../../d8/d6a/group__imgcodecs__flags.html#ga4e6c77a906952525a4d22fb3efea0e01">More...</a><br/></td></tr>
</td></tr>
<tr class="separator:ga4e6c77a906952525a4d22fb3efea0e01"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaa60044d347ffd187161b5ec9ea2ef2f9"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gaa60044d347ffd187161b5ec9ea2ef2f9">cv::ImwritePNGFlags</a> { <br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#ggaa60044d347ffd187161b5ec9ea2ef2f9a5bb296ccb3fab45a113a1cc28bf43abf">cv::IMWRITE_PNG_STRATEGY_DEFAULT</a> = 0, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#ggaa60044d347ffd187161b5ec9ea2ef2f9a3def1a542d499f4f05c19efab9d79292">cv::IMWRITE_PNG_STRATEGY_FILTERED</a> = 1, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#ggaa60044d347ffd187161b5ec9ea2ef2f9affed3ef30c9147769361546cf0b5ad5a">cv::IMWRITE_PNG_STRATEGY_HUFFMAN_ONLY</a> = 2, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#ggaa60044d347ffd187161b5ec9ea2ef2f9a5d75e74ce7cdaf0139f1d44d23734b43">cv::IMWRITE_PNG_STRATEGY_RLE</a> = 3, 
<br/>
  <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#ggaa60044d347ffd187161b5ec9ea2ef2f9a4663acb92a49bb13104a2769cee7d0c8">cv::IMWRITE_PNG_STRATEGY_FIXED</a> = 4
<br/>
 }<tr class="memdesc:gaa60044d347ffd187161b5ec9ea2ef2f9"><td class="mdescLeft"> </td><td class="mdescRight">Imwrite PNG specific flags used to tune the compression algorithm.  <a href="../../d8/d6a/group__imgcodecs__flags.html#gaa60044d347ffd187161b5ec9ea2ef2f9">More...</a><br/></td></tr>
</td></tr>
<tr class="separator:gaa60044d347ffd187161b5ec9ea2ef2f9"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a id="details" name="details"></a><h2 class="groupheader">Detailed Description</h2>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="ga61d9b0126a3e57d9277ac48327799c80"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga61d9b0126a3e57d9277ac48327799c80">◆ </a></span>ImreadModes</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#ga61d9b0126a3e57d9277ac48327799c80">cv::ImreadModes</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d6/d87/imgcodecs_8hpp.html">opencv2/imgcodecs.hpp</a>&gt;</code></p>
<p>Imread flags. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga61d9b0126a3e57d9277ac48327799c80aeddd67043ed0df14f9d9a4e66d2b0708"></a>IMREAD_UNCHANGED <div class="python_language">Python: cv.IMREAD_UNCHANGED</div></td><td class="fielddoc"><p>If set, return the loaded image as is (with alpha channel, otherwise it gets cropped). Ignore EXIF orientation. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga61d9b0126a3e57d9277ac48327799c80ae29981cfc153d3b0cef5c0daeedd2125"></a>IMREAD_GRAYSCALE <div class="python_language">Python: cv.IMREAD_GRAYSCALE</div></td><td class="fielddoc"><p>If set, always convert image to the single channel grayscale image (codec internal conversion). </p>
</td></tr>
<tr><td class="fieldname"><a id="gga61d9b0126a3e57d9277ac48327799c80af660544735200cbe942eea09232eb822"></a>IMREAD_COLOR <div class="python_language">Python: cv.IMREAD_COLOR</div></td><td class="fielddoc"><p>If set, always convert image to the 3 channel BGR color image. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga61d9b0126a3e57d9277ac48327799c80a0b486c93c25e8a0b0712681bb7254c18"></a>IMREAD_ANYDEPTH <div class="python_language">Python: cv.IMREAD_ANYDEPTH</div></td><td class="fielddoc"><p>If set, return 16-bit/32-bit image when the input has the corresponding depth, otherwise convert it to 8-bit. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga61d9b0126a3e57d9277ac48327799c80ab6573b69300c092b61800222fe555953"></a>IMREAD_ANYCOLOR <div class="python_language">Python: cv.IMREAD_ANYCOLOR</div></td><td class="fielddoc"><p>If set, the image is read in any possible color format. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga61d9b0126a3e57d9277ac48327799c80a1b482916f4ffe34f0b90550f267fd896"></a>IMREAD_LOAD_GDAL <div class="python_language">Python: cv.IMREAD_LOAD_GDAL</div></td><td class="fielddoc"><p>If set, use the gdal driver for loading the image. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga61d9b0126a3e57d9277ac48327799c80a64063c4e6a917237bd2daef7aa23dc01"></a>IMREAD_REDUCED_GRAYSCALE_2 <div class="python_language">Python: cv.IMREAD_REDUCED_GRAYSCALE_2</div></td><td class="fielddoc"><p>If set, always convert image to the single channel grayscale image and the image size reduced 1/2. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga61d9b0126a3e57d9277ac48327799c80a4d3de7230e2682195e09b00728792b37"></a>IMREAD_REDUCED_COLOR_2 <div class="python_language">Python: cv.IMREAD_REDUCED_COLOR_2</div></td><td class="fielddoc"><p>If set, always convert image to the 3 channel BGR color image and the image size reduced 1/2. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga61d9b0126a3e57d9277ac48327799c80a7903236181de9ade28ba1438b342e6c8"></a>IMREAD_REDUCED_GRAYSCALE_4 <div class="python_language">Python: cv.IMREAD_REDUCED_GRAYSCALE_4</div></td><td class="fielddoc"><p>If set, always convert image to the single channel grayscale image and the image size reduced 1/4. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga61d9b0126a3e57d9277ac48327799c80adf4fbfe43fb7c8c94ca008e7d7d20086"></a>IMREAD_REDUCED_COLOR_4 <div class="python_language">Python: cv.IMREAD_REDUCED_COLOR_4</div></td><td class="fielddoc"><p>If set, always convert image to the 3 channel BGR color image and the image size reduced 1/4. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga61d9b0126a3e57d9277ac48327799c80a838097893b5d5385d43e6a4470227a33"></a>IMREAD_REDUCED_GRAYSCALE_8 <div class="python_language">Python: cv.IMREAD_REDUCED_GRAYSCALE_8</div></td><td class="fielddoc"><p>If set, always convert image to the single channel grayscale image and the image size reduced 1/8. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga61d9b0126a3e57d9277ac48327799c80ac865811dba56b17a8241f9e62c273198"></a>IMREAD_REDUCED_COLOR_8 <div class="python_language">Python: cv.IMREAD_REDUCED_COLOR_8</div></td><td class="fielddoc"><p>If set, always convert image to the 3 channel BGR color image and the image size reduced 1/8. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga61d9b0126a3e57d9277ac48327799c80a34f91a514cd95127d8ba900840af548e"></a>IMREAD_IGNORE_ORIENTATION <div class="python_language">Python: cv.IMREAD_IGNORE_ORIENTATION</div></td><td class="fielddoc"><p>If set, do not rotate the image according to EXIF's orientation flag. </p>
</td></tr>
</table>
</div>
</div>
<a id="ga7682010f3485d86cd963504aa7ad6146"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7682010f3485d86cd963504aa7ad6146">◆ </a></span>ImwriteEXRCompressionFlags</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#ga7682010f3485d86cd963504aa7ad6146">cv::ImwriteEXRCompressionFlags</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d6/d87/imgcodecs_8hpp.html">opencv2/imgcodecs.hpp</a>&gt;</code></p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga7682010f3485d86cd963504aa7ad6146a0c31f206cd9469a9a12a131a14dd8066"></a>IMWRITE_EXR_COMPRESSION_NO <div class="python_language">Python: cv.IMWRITE_EXR_COMPRESSION_NO</div></td><td class="fielddoc"><p>no compression </p>
</td></tr>
<tr><td class="fieldname"><a id="gga7682010f3485d86cd963504aa7ad6146a9df4442565f77b586bd2f4aea45ec2ed"></a>IMWRITE_EXR_COMPRESSION_RLE <div class="python_language">Python: cv.IMWRITE_EXR_COMPRESSION_RLE</div></td><td class="fielddoc"><p>run length encoding </p>
</td></tr>
<tr><td class="fieldname"><a id="gga7682010f3485d86cd963504aa7ad6146a1a01f8cab2f18a2570727bfeb9e59521"></a>IMWRITE_EXR_COMPRESSION_ZIPS <div class="python_language">Python: cv.IMWRITE_EXR_COMPRESSION_ZIPS</div></td><td class="fielddoc"><p>zlib compression, one scan line at a time </p>
</td></tr>
<tr><td class="fieldname"><a id="gga7682010f3485d86cd963504aa7ad6146a2e27bf64b5d149d3df4ce952b2666da9"></a>IMWRITE_EXR_COMPRESSION_ZIP <div class="python_language">Python: cv.IMWRITE_EXR_COMPRESSION_ZIP</div></td><td class="fielddoc"><p>zlib compression, in blocks of 16 scan lines </p>
</td></tr>
<tr><td class="fieldname"><a id="gga7682010f3485d86cd963504aa7ad6146a201bd49e4dbcf36181e7bbf1adf6189b"></a>IMWRITE_EXR_COMPRESSION_PIZ <div class="python_language">Python: cv.IMWRITE_EXR_COMPRESSION_PIZ</div></td><td class="fielddoc"><p>piz-based wavelet compression </p>
</td></tr>
<tr><td class="fieldname"><a id="gga7682010f3485d86cd963504aa7ad6146a1c58571086123c174bf8a7a2566c205a"></a>IMWRITE_EXR_COMPRESSION_PXR24 <div class="python_language">Python: cv.IMWRITE_EXR_COMPRESSION_PXR24</div></td><td class="fielddoc"><p>lossy 24-bit float compression </p>
</td></tr>
<tr><td class="fieldname"><a id="gga7682010f3485d86cd963504aa7ad6146a490d7b948c06bb9da7d8d5b9f4090866"></a>IMWRITE_EXR_COMPRESSION_B44 <div class="python_language">Python: cv.IMWRITE_EXR_COMPRESSION_B44</div></td><td class="fielddoc"><p>lossy 4-by-4 pixel block compression, fixed compression rate </p>
</td></tr>
<tr><td class="fieldname"><a id="gga7682010f3485d86cd963504aa7ad6146a9433a1a51d231d9ab11757e5be524036"></a>IMWRITE_EXR_COMPRESSION_B44A <div class="python_language">Python: cv.IMWRITE_EXR_COMPRESSION_B44A</div></td><td class="fielddoc"><p>lossy 4-by-4 pixel block compression, flat fields are compressed more </p>
</td></tr>
<tr><td class="fieldname"><a id="gga7682010f3485d86cd963504aa7ad6146af065a15ca34c4efecd841f5f8257910a"></a>IMWRITE_EXR_COMPRESSION_DWAA <div class="python_language">Python: cv.IMWRITE_EXR_COMPRESSION_DWAA</div></td><td class="fielddoc"><p>lossy DCT based compression, in blocks of 32 scanlines. More efficient for partial buffer access. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga7682010f3485d86cd963504aa7ad6146a6abb8796c9d82f7fe8b052444b492a2e"></a>IMWRITE_EXR_COMPRESSION_DWAB <div class="python_language">Python: cv.IMWRITE_EXR_COMPRESSION_DWAB</div></td><td class="fielddoc"><p>lossy DCT based compression, in blocks of 256 scanlines. More efficient space wise and faster to decode full frames than DWAA_COMPRESSION. </p>
</td></tr>
</table>
</div>
</div>
<a id="ga47d07d14b3c33151daac7fde6f34e897"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga47d07d14b3c33151daac7fde6f34e897">◆ </a></span>ImwriteEXRTypeFlags</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#ga47d07d14b3c33151daac7fde6f34e897">cv::ImwriteEXRTypeFlags</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d6/d87/imgcodecs_8hpp.html">opencv2/imgcodecs.hpp</a>&gt;</code></p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga47d07d14b3c33151daac7fde6f34e897a15ef5fdee6e2a55b4d0a1f9b2874fb96"></a>IMWRITE_EXR_TYPE_HALF <div class="python_language">Python: cv.IMWRITE_EXR_TYPE_HALF</div></td><td class="fielddoc"><p>store as HALF (FP16) </p>
</td></tr>
<tr><td class="fieldname"><a id="gga47d07d14b3c33151daac7fde6f34e897ad6a009ca0724b2e8bcbe0b60f395f2c7"></a>IMWRITE_EXR_TYPE_FLOAT <div class="python_language">Python: cv.IMWRITE_EXR_TYPE_FLOAT</div></td><td class="fielddoc"><p>store as FP32 (default) </p>
</td></tr>
</table>
</div>
</div>
<a id="ga292d81be8d76901bff7988d18d2b42ac"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga292d81be8d76901bff7988d18d2b42ac">◆ </a></span>ImwriteFlags</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#ga292d81be8d76901bff7988d18d2b42ac">cv::ImwriteFlags</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d6/d87/imgcodecs_8hpp.html">opencv2/imgcodecs.hpp</a>&gt;</code></p>
<p>Imwrite flags. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga292d81be8d76901bff7988d18d2b42aca947af22db2cf6f1f482289b0985b09ec"></a>IMWRITE_JPEG_QUALITY <div class="python_language">Python: cv.IMWRITE_JPEG_QUALITY</div></td><td class="fielddoc"><p>For JPEG, it can be a quality from 0 to 100 (the higher is the better). Default value is 95. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga292d81be8d76901bff7988d18d2b42aca32ab52a075fc4e2ca23760a80b3fcd12"></a>IMWRITE_JPEG_PROGRESSIVE <div class="python_language">Python: cv.IMWRITE_JPEG_PROGRESSIVE</div></td><td class="fielddoc"><p>Enable JPEG features, 0 or 1, default is False. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga292d81be8d76901bff7988d18d2b42acae80c3e72393ec86b8ea1db4a2a228b5f"></a>IMWRITE_JPEG_OPTIMIZE <div class="python_language">Python: cv.IMWRITE_JPEG_OPTIMIZE</div></td><td class="fielddoc"><p>Enable JPEG features, 0 or 1, default is False. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga292d81be8d76901bff7988d18d2b42aca06f325a56b6b09074d9781de18745560"></a>IMWRITE_JPEG_RST_INTERVAL <div class="python_language">Python: cv.IMWRITE_JPEG_RST_INTERVAL</div></td><td class="fielddoc"><p>JPEG restart interval, 0 - 65535, default is 0 - no restart. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga292d81be8d76901bff7988d18d2b42aca64c65da14d74ab87143d6999c4df12ea"></a>IMWRITE_JPEG_LUMA_QUALITY <div class="python_language">Python: cv.IMWRITE_JPEG_LUMA_QUALITY</div></td><td class="fielddoc"><p>Separate luma quality level, 0 - 100, default is 0 - don't use. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga292d81be8d76901bff7988d18d2b42acaaba13094b3575e78a6002788b0ae7354"></a>IMWRITE_JPEG_CHROMA_QUALITY <div class="python_language">Python: cv.IMWRITE_JPEG_CHROMA_QUALITY</div></td><td class="fielddoc"><p>Separate chroma quality level, 0 - 100, default is 0 - don't use. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga292d81be8d76901bff7988d18d2b42acad2548321c69ab9c0582fd51e75ace1d0"></a>IMWRITE_PNG_COMPRESSION <div class="python_language">Python: cv.IMWRITE_PNG_COMPRESSION</div></td><td class="fielddoc"><p>For PNG, it can be the compression level from 0 to 9. A higher value means a smaller size and longer compression time. If specified, strategy is changed to IMWRITE_PNG_STRATEGY_DEFAULT (Z_DEFAULT_STRATEGY). Default value is 1 (best speed setting). </p>
</td></tr>
<tr><td class="fieldname"><a id="gga292d81be8d76901bff7988d18d2b42acaa95faec46150b372c80c7d4bbedbcf8a"></a>IMWRITE_PNG_STRATEGY <div class="python_language">Python: cv.IMWRITE_PNG_STRATEGY</div></td><td class="fielddoc"><p>One of <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gaa60044d347ffd187161b5ec9ea2ef2f9" title="Imwrite PNG specific flags used to tune the compression algorithm. ">cv::ImwritePNGFlags</a>, default is IMWRITE_PNG_STRATEGY_RLE. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga292d81be8d76901bff7988d18d2b42aca8c609ad94b7bd036ef68c51e7f77915f"></a>IMWRITE_PNG_BILEVEL <div class="python_language">Python: cv.IMWRITE_PNG_BILEVEL</div></td><td class="fielddoc"><p>Binary level PNG, 0 or 1, default is 0. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga292d81be8d76901bff7988d18d2b42aca6ad01adc2675d735ec8424e6e7562087"></a>IMWRITE_PXM_BINARY <div class="python_language">Python: cv.IMWRITE_PXM_BINARY</div></td><td class="fielddoc"><p>For PPM, PGM, or PBM, it can be a binary format flag, 0 or 1. Default value is 1. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga292d81be8d76901bff7988d18d2b42aca4aed00547168d3a1083a2b1241b99102"></a>IMWRITE_EXR_TYPE <div class="python_language">Python: cv.IMWRITE_EXR_TYPE</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga292d81be8d76901bff7988d18d2b42aca57b65c34c4907fb5ea5d685268bea89e"></a>IMWRITE_EXR_COMPRESSION <div class="python_language">Python: cv.IMWRITE_EXR_COMPRESSION</div></td><td class="fielddoc"><p>override EXR storage type (FLOAT (FP32) is default) </p>
</td></tr>
<tr><td class="fieldname"><a id="gga292d81be8d76901bff7988d18d2b42aca7d3f848cc45d3138de0a2053d213a54a"></a>IMWRITE_WEBP_QUALITY <div class="python_language">Python: cv.IMWRITE_WEBP_QUALITY</div></td><td class="fielddoc"><p>override EXR compression type (ZIP_COMPRESSION = 3 is default) </p>
<p>For WEBP, it can be a quality from 1 to 100 (the higher is the better). By default (without any parameter) and for quality above 100 the lossless compression is used. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga292d81be8d76901bff7988d18d2b42acacc7bb2ed1314ec9278a38d85e83b6623"></a>IMWRITE_PAM_TUPLETYPE <div class="python_language">Python: cv.IMWRITE_PAM_TUPLETYPE</div></td><td class="fielddoc"><p>For PAM, sets the TUPLETYPE field to the corresponding string value that is defined for the format. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga292d81be8d76901bff7988d18d2b42acaac188d2ba4ccffdda3d820c8e9dfa7c0"></a>IMWRITE_TIFF_RESUNIT <div class="python_language">Python: cv.IMWRITE_TIFF_RESUNIT</div></td><td class="fielddoc"><p>For TIFF, use to specify which DPI resolution unit to set; see libtiff documentation for valid values. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga292d81be8d76901bff7988d18d2b42aca59a88cc19c00988a6677c60e5f6b03d0"></a>IMWRITE_TIFF_XDPI <div class="python_language">Python: cv.IMWRITE_TIFF_XDPI</div></td><td class="fielddoc"><p>For TIFF, use to specify the X direction DPI. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga292d81be8d76901bff7988d18d2b42aca76b632839a9f3e542e90fa7bfcfd8b9a"></a>IMWRITE_TIFF_YDPI <div class="python_language">Python: cv.IMWRITE_TIFF_YDPI</div></td><td class="fielddoc"><p>For TIFF, use to specify the Y direction DPI. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga292d81be8d76901bff7988d18d2b42acad3d5dac0cfc770b96fc61e895a165fa4"></a>IMWRITE_TIFF_COMPRESSION <div class="python_language">Python: cv.IMWRITE_TIFF_COMPRESSION</div></td><td class="fielddoc"><p>For TIFF, use to specify the image compression scheme. See libtiff for integer constants corresponding to compression formats. Note, for images whose depth is CV_32F, only libtiff's SGILOG compression scheme is used. For other supported depths, the compression scheme can be specified by this flag; LZW compression is the default. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga292d81be8d76901bff7988d18d2b42acaa082190a50748f712a6384416c2524dd"></a>IMWRITE_JPEG2000_COMPRESSION_X1000 <div class="python_language">Python: cv.IMWRITE_JPEG2000_COMPRESSION_X1000</div></td><td class="fielddoc"><p>For JPEG2000, use to specify the target compression rate (multiplied by 1000). The value can be from 0 to 1000. Default is 1000. </p>
</td></tr>
</table>
</div>
</div>
<a id="ga4e6c77a906952525a4d22fb3efea0e01"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4e6c77a906952525a4d22fb3efea0e01">◆ </a></span>ImwritePAMFlags</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#ga4e6c77a906952525a4d22fb3efea0e01">cv::ImwritePAMFlags</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d6/d87/imgcodecs_8hpp.html">opencv2/imgcodecs.hpp</a>&gt;</code></p>
<p>Imwrite PAM specific tupletype flags used to define the 'TUPETYPE' field of a PAM file. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga4e6c77a906952525a4d22fb3efea0e01a05708faa19fda2b0e3e793542fced3c9"></a>IMWRITE_PAM_FORMAT_NULL <div class="python_language">Python: cv.IMWRITE_PAM_FORMAT_NULL</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga4e6c77a906952525a4d22fb3efea0e01a32a5eb9e6aa378ef126a6ec29c710d15"></a>IMWRITE_PAM_FORMAT_BLACKANDWHITE <div class="python_language">Python: cv.IMWRITE_PAM_FORMAT_BLACKANDWHITE</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga4e6c77a906952525a4d22fb3efea0e01a9f2122f919b87bd6f5209ebe3673478d"></a>IMWRITE_PAM_FORMAT_GRAYSCALE <div class="python_language">Python: cv.IMWRITE_PAM_FORMAT_GRAYSCALE</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga4e6c77a906952525a4d22fb3efea0e01a31754d8e503b394996982d8eeb5916b5"></a>IMWRITE_PAM_FORMAT_GRAYSCALE_ALPHA <div class="python_language">Python: cv.IMWRITE_PAM_FORMAT_GRAYSCALE_ALPHA</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga4e6c77a906952525a4d22fb3efea0e01a749f4c5db48aa048ae4dbd8670d7d58d"></a>IMWRITE_PAM_FORMAT_RGB <div class="python_language">Python: cv.IMWRITE_PAM_FORMAT_RGB</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga4e6c77a906952525a4d22fb3efea0e01adfdc63fecaa2abcbe1d98b79030c726a"></a>IMWRITE_PAM_FORMAT_RGB_ALPHA <div class="python_language">Python: cv.IMWRITE_PAM_FORMAT_RGB_ALPHA</div></td><td class="fielddoc"></td></tr>
</table>
</div>
</div>
<a id="gaa60044d347ffd187161b5ec9ea2ef2f9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa60044d347ffd187161b5ec9ea2ef2f9">◆ </a></span>ImwritePNGFlags</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../d8/d6a/group__imgcodecs__flags.html#gaa60044d347ffd187161b5ec9ea2ef2f9">cv::ImwritePNGFlags</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d6/d87/imgcodecs_8hpp.html">opencv2/imgcodecs.hpp</a>&gt;</code></p>
<p>Imwrite PNG specific flags used to tune the compression algorithm. </p>
<p>These flags will be modify the way of PNG image compression and will be passed to the underlying zlib processing stage.</p>
<ul>
<li>The effect of IMWRITE_PNG_STRATEGY_FILTERED is to force more Huffman coding and less string matching; it is somewhat intermediate between IMWRITE_PNG_STRATEGY_DEFAULT and IMWRITE_PNG_STRATEGY_HUFFMAN_ONLY.</li>
<li>IMWRITE_PNG_STRATEGY_RLE is designed to be almost as fast as IMWRITE_PNG_STRATEGY_HUFFMAN_ONLY, but give better compression for PNG image data.</li>
<li>The strategy parameter only affects the compression ratio but not the correctness of the compressed output even if it is not set appropriately.</li>
<li>IMWRITE_PNG_STRATEGY_FIXED prevents the use of dynamic Huffman codes, allowing for a simpler decoder for special applications. </li>
</ul>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ggaa60044d347ffd187161b5ec9ea2ef2f9a5bb296ccb3fab45a113a1cc28bf43abf"></a>IMWRITE_PNG_STRATEGY_DEFAULT <div class="python_language">Python: cv.IMWRITE_PNG_STRATEGY_DEFAULT</div></td><td class="fielddoc"><p>Use this value for normal data. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaa60044d347ffd187161b5ec9ea2ef2f9a3def1a542d499f4f05c19efab9d79292"></a>IMWRITE_PNG_STRATEGY_FILTERED <div class="python_language">Python: cv.IMWRITE_PNG_STRATEGY_FILTERED</div></td><td class="fielddoc"><p>Use this value for data produced by a filter (or predictor).Filtered data consists mostly of small values with a somewhat random distribution. In this case, the compression algorithm is tuned to compress them better. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaa60044d347ffd187161b5ec9ea2ef2f9affed3ef30c9147769361546cf0b5ad5a"></a>IMWRITE_PNG_STRATEGY_HUFFMAN_ONLY <div class="python_language">Python: cv.IMWRITE_PNG_STRATEGY_HUFFMAN_ONLY</div></td><td class="fielddoc"><p>Use this value to force Huffman encoding only (no string match). </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaa60044d347ffd187161b5ec9ea2ef2f9a5d75e74ce7cdaf0139f1d44d23734b43"></a>IMWRITE_PNG_STRATEGY_RLE <div class="python_language">Python: cv.IMWRITE_PNG_STRATEGY_RLE</div></td><td class="fielddoc"><p>Use this value to limit match distances to one (run-length encoding). </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaa60044d347ffd187161b5ec9ea2ef2f9a4663acb92a49bb13104a2769cee7d0c8"></a>IMWRITE_PNG_STRATEGY_FIXED <div class="python_language">Python: cv.IMWRITE_PNG_STRATEGY_FIXED</div></td><td class="fielddoc"><p>Using this value prevents the use of dynamic Huffman codes, allowing for a simpler decoder for special applications. </p>
</td></tr>
</table>
</div>
</div>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:40 for OpenCV by  <a href="http://www.doxygen.org/index.html">
<img alt="doxygen" class="footer" src="../../doxygen.png"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
